package hotel.meituan.oversea.biz.controller;

import hotel.base.oversea.utils.Result;
import hotel.base.oversea.vo.meituan.request.hotel.MtHotelDetailForFpReqVO;
import hotel.base.oversea.vo.meituan.response.hotel.MtHotelDetailForFpRspVO;
import hotel.meituan.oversea.biz.service.MtHotelDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author HuangT
 * @Date 2020/9/2 17:21
 */
@Slf4j
@RestController
@RequestMapping("/mtHotelDetail")
public class MtHotelDetailController {

    @Resource
    private MtHotelDetailService mtHotelDetailService;

    @PostMapping("/getHotelInfoForFp")
    public Result<List<MtHotelDetailForFpRspVO>> getHotelInfoForFp(@RequestBody MtHotelDetailForFpReqVO mtHotelDetailForFpReqVO){
        return mtHotelDetailService.getHotelInfoForFp(mtHotelDetailForFpReqVO);
    }

}
